using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for NewsTableAdapter
/// </summary>
namespace EcsSiteDSTableAdapters
{
    public partial class NewsTableAdapter
    {
        public string ConnectionString
        {
            get 
            { 
                return this.Connection.ConnectionString; 
            }
            set 
            { 
                this.Connection.ConnectionString = value; 
            }
        }
        public void SetCommandTimeOut(int timeOut)
        {
            if (this.Adapter.InsertCommand != null)
            {
                this.Adapter.InsertCommand.CommandTimeout = timeOut;
            }
            if (this.Adapter.DeleteCommand != null)
            {
                this.Adapter.DeleteCommand.CommandTimeout = timeOut;
            }
            if (this.Adapter.UpdateCommand != null)
            {
                this.Adapter.UpdateCommand.CommandTimeout = timeOut;
            }
            for (int i = 0; i < this.CommandCollection.Length; i++)
            {
                if (this.CommandCollection[i] != null)
                {
                    this.CommandCollection[i].CommandTimeout = timeOut;
                }
            }
        }
    }
}

